<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="net.ssta.common.StyleConstants" %>
<%@ page import="java.io.InputStreamReader" %>
<%@ page import="java.io.InputStream" %>
<%@ page import="net.ssta.common.UrlUtil" %>
<%
	String path = request.getContextPath();
    
    String _styleoption=request.getParameter("styleoption");
    
    if(_styleoption!=null){
    	StyleConstants.updateStyleOption(_styleoption);
    	
    	try{
        	InputStream loginis=UrlUtil.getUrlInputStream("http://"+request.getServerName()+":"+request.getServerPort()+"/cms/clearCache.jsp");
        	char loginbuffer[] = new char[1024]; 
        	InputStreamReader loginir =new  InputStreamReader(loginis,"UTF-8");
        	int loginsize = 0 ;
        	while((loginsize=loginir.read(loginbuffer, 0, loginbuffer.length))!=-1){
        	       out.print(loginbuffer);
        	       loginbuffer=new char[1024]; 
        	}
    	loginis.close();  
    	loginir.close(); 
    	}catch(Exception e){out.println(e);}
    }
    String styleoption=StyleConstants.styleOption;
    
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>


<link type="text/css" rel="stylesheet" href="<%=path %>/includes/css/commonStyle.css"/> 
<link type="text/css" rel="stylesheet" href="<%=path %>/includes/styleBase/css/styleBase.css"/>
<link type="text/css" rel="stylesheet" href="<%=path %>/includes/styleBase/css/ostable.css" />
<link type="text/css" rel="stylesheet" href="<%=path %>/includes/styleBase/css/tab.css" />



<script type='text/javascript' src="<%=path %>/includes/FusionCharts/js/FusionCharts.js"></script>
<script type='text/javascript' src="<%=path %>/includes/FusionCharts/js/FusionChartsExportComponent.js"></script>

<script type='text/javascript' src="<%=path %>/includes/js/jquery.js"></script>
<script type="text/javascript" src="<%=path %>/includes/styleBase/js/style.js"></script>
<script type="text/javascript" src="<%=path %>/includes/DatePicker/WdatePicker.js"></script>


<script type="text/javascript" src="<%=path %>/includes/lhgdialog/lhgcore.min.js"></script>
<script type="text/javascript" src="<%=path %>/includes/lhgdialog/lhgdialog.js"></script>

<script type="text/javascript" src="<%=path %>/includes/Fvalidate/Fvalidate.js" ></script>
<link type="text/css" rel="stylesheet" href="<%=path %>/includes/Fvalidate/style.css" />

 
<title>设置分值</title>
 
<script type="text/javascript">


$(document).ready(function()
{
     
	$("#searchFrom").Fvalidate({live:true});
 
});

 
function checkForm(){


  if(!$("#searchFrom").Fvalidate()){
    return false;
  }
   document.configFrom.submit();
   return true;
}      
 
  
</script>


<style>
body, html {
	margin:0;
	padding:0;
}
	.ctable{
		font-size:12px;
		cellPadding:0px;
		cellSpacing:0px;
		background-color:#F6F9FF;
		
		} 
 
		.ctable tr{
		height:24px; 
		} 
		.ctable tr td{ 
		border:0px;
		border-top:1px #99bbe8 solid; 
		border-right:1px #99bbe8 solid;
		padding:5px; 
		vertical-align:middle;
		}
</style>
 
 


</head>
<body>
<form id="searchFrom" action="<%=path %>/back/unit/styleConfig.jsp"  name="configFrom" method="post">

<div class="multiEditPanel" style="border:0;padding:10px;width:90%;padding-left:20px;">
  <table cellpadding="0" align="center" cellspacing="0" border="0"  style="border:1px solid #99bbe8; " width="90%">
    <tr >
      <td align="right" width="15%"  ><input type="radio" name="styleoption" value="" <%="".equals(styleoption)?"checked":"" %>/></td>
      <td align="center">
         <img src="<%=path %>/common/images/style1.jpg" width="250" height="400"/>
      </td>
       <td align="right"  style="border-left:1px solid #99bbe8; "><input type="radio"  name="styleoption" value="1"  <%="1".equals(styleoption)?"checked":"" %>/></td>
      <td align="center" >
         <img src="<%=path %>/common/images/style2.jpg" width="250" height="400"/>
      </td>
     </tr>
     
      <tr >
      <td> </td>
      <td align="center">
         蓝色系
      </td>
       <td style="border-left:1px solid #99bbe8; ">&nbsp;</td>
      <td align="center">
          红色系
      </td>
     </tr>
  </table>
</div>
 <center>
   <input type="button" onclick="checkForm()" value="确定"/> 
 </center>
  	
 
</form>
</body> 
</html>